package com.zut.base.common.entry;

/**
 * @author zhang
 * @date 2020/11/1 13:32
 */
public enum ResultCode {
    FAILED(101, "操作失败"),
    VALIDATE_FAILED(408, "请参数校验失败"),
    RESPONSE_FAILED(102, "响应失败"),
    SUCCESS(200, "操作成功");
    private int code;
    private String msg;

    ResultCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
